package chap05.exercises;

public class Book {
	String author;
	String title;
	float price;
	String publisher;
	int publisherYear;
	
	public Book() {
		
	}
	public Book(String author,String title,float price,String publisher,int publisherYear) {
		this.author=author;
		this.title=title;
		this.price=price;
		this.publisher=publisher;
		this.publisherYear=publisherYear;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public String getPublisher() {
		return publisher;
	}
	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}
	public int getPublisherYear() {
		return publisherYear;
	}
	public void setPublisherYear(int publisherYear) {
		this.publisherYear = publisherYear;
	}
	
	public void show() {
		System.out.print(author+"\t"+title+"\t"+price+"\t"+publisher+"\t"+publisherYear+"\n");
	}

}
